Revert default mesh materials #15930
Merged
+18
−178
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
Closes #15799.
Many rendering people and maintainers are in favor of reverting default mesh materials added in #15524, especially as the migration to required component is already large and heavily breaking.
Solution
Revert default mesh materials, and adjust docs accordingly.
extract_default_materials
clear_material_instances
, and move the logic back intoextract_mesh_materials
HasMaterial2d
andHasMaterial3d
Color::srgb(1.0, 0.0, 1.0)
, while 3D usesColor::srgb(1.0, 0.0, 0.5)
. Not sure if this is intended.There is now no indication at all about missing materials for
Mesh2d
andMesh3d
. Having a mesh without a material renders nothing.Testing
I ran
2d_shapes
,mesh2d_manual
, and3d_shapes
, with and without mesh material components.